﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using Tallerista.Domain;

namespace Tallerista.Test
{
    [TestFixture]
    public class RangeFixture
    {
        [Test]
        public void Deberia_estar_en_el_rango()
        {
            Single init = (float) 100.56;
            Single end = 4000;

            Single middle = 500;
            IRange<float> myRange = new Range<float>(init, end);

            Assert.AreEqual(true, myRange.Contains(middle));
        }

        [Test]
        public void No_Deberia_estar_en_el_rango()
        {
            Single init = (float)100.56;
            Single end = 4000;

            Single middle = 9999;
            IRange<float> myRange = new Range<float>(init, end);

            Assert.AreEqual(false, myRange.Contains(middle));
        }

      

    }
}
